package problem4;

public class Milktea extends Softdrinks {
    double milkcontent;

    public Milktea(String brand, double sugarcontent, double milkcontent) {
        super(brand, sugarcontent);
        this.milkcontent = milkcontent;
    }

    @Override
    String advertisement() {
        return "This product contains sugar and milk.";
    }

    @Override
    String component() {
        return "sugarcontent: " + sugarcontent + " gram "
                + "milkcontent: " + milkcontent + "%";
    }

}